#######################################################################
# Generic make script for compiling erlang code                       #
# The environment variable $ERLHOME has to be set to where erlang/OTP #
# is installed                                                        #
# Compiles the code into a ebin dir. relative to the source dir.      #
####################################################################### 

.PHONY: clean distclean run boot compile all

all: compile boot

compile:
	@sh mk_compile.sh

boot:
	@sh mk_boot.sh

run:
	@sh mk_run.sh

clean:
	@rm -f src/*.beam ebin/* system.mk

distclean: clean
	@rm -rf db/
